import { GET, POST, DELETE, PATCH } from '@/utils/request'

const UserService = {
    getLoginCode: (data?: any) => GET('/user/code', data),
    login: (data?: any) => POST('/user/login', data),
    register: (data?: any) => POST('/user/register', data),
    updateUserInfo: (data?: any) => POST('/user/update/userInfo', data)
}

export default UserService